<%@page import="com.wanmait.cookbook.vo.RecipeType"%>
<%@page import="java.util.List"%>
<%@page import="com.wanmait.cookbook.vo.RecipeTypeSecond"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<!-- saved from url=(0029)https://www.douguo.com/fenlei -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<title>精选菜谱_菜谱大全_美食菜谱_家常菜谱做法_家常菜谱做法大全_豆果美食</title>

<link rel="icon"
	href="https://cp1.douguo.com/static/nweb/images/favicon.ico?v=1912"
	type="image/x-icon">
<link rel="stylesheet"
	href="<%=path%>/static/RecipeTypeShowList_files/main.css">
<link rel="stylesheet"
	href="<%=path%>/static/RecipeTypeShowList_files/sort.css">
<script src="<%=path%>/static/RecipeTypeShowList_files/hm.js.下载"></script>
<script src="<%=path%>/static/RecipeTypeShowList_files/jquery.js.下载"></script>
<script data-ad-client="ca-pub-6608973961595981" async=""
	src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?f4fa5d56f272ae0a0777feec2184a97f";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
<style>
.one-pan-tip {
	cursor: pointer;
}

.one-pan-tip::before {
	background-position: center;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	box-sizing: border-box;
	width: 1em;
	height: 1em;
	margin: 0 1px .15em 1px;
	vertical-align: middle;
	display: inline-block;
}

.one-pan-tip-success::before {
	content: '';
	background-image:
		url()
}

.one-pan-tip-error {
	text-decoration: line-through;
}

.one-pan-tip-error::before {
	content: '';
	background-image:
		url()
}

.one-pan-tip-other::before {
	content: '';
	background-image:
		url()
}

.one-pan-tip-lock::before {
	content: '';
	background-image:
		url()
}
</style>
<meta name="ljjc::status" content="on">
</head>
<body>
	<jsp:include page="/inc/head.jsp"></jsp:include>
	<script>
    //var time=Date.parse(new Date());
    $.ajax({
        url: "/login/user?time="+new Date().getTime(),
        data:"",
        success:function(res) {
            var headhtml="";
            if(res.data.user.user_id){//登录
                var user=res.data.user;
                // 发布弹窗
                headhtml+='<div class="pubt" onmouseover="javascript:$(\'.pubt-box\').show();" onmouseout="javascript:$(\'.pubt-box\').hide();"> <a class="btn-pubt" href="javascript:void(0);">发布</a> <div class="pubt-box br8"> <span class="arwwj"> </span> <a href="/upfood.html">发布菜谱</a> <a href="/caidan/create">创建菜单</a>';
                if(user.is_create_article){
                    headhtml+='<a href="/uparticle.html">发布长笔记</a>';
                }
                if(user.is_create_video){
                    headhtml+='<a href="/video/upvideo">发布视频</a>';
                }
                headhtml+="  </div> </div>";
                //头像
                headhtml+='<div class="myinfo relative" onmouseover="javascript:$(\'.myedit\').show();" onmouseout="javascript:$(\'.myedit\').hide();"> <a class="headicon" href="/u/'+user.username+'.html"> <img class="wb100 br50" src="'+user.headicon+'" alt=""> <span class="msgnum"></span> </a> <div class="myedit br8"> <span class="arwwj"> </span> <a class="relative" href="/message/remind/1" target="_blank">消息提醒 <span class="boll"></span> </a> <a href="/u/'+user.username+'/collect">我的收藏</a> <a href="/draft/recipe">草稿箱</a> <a href="/user/profile" target="_blank">账号设置</a> <a href="/logout?v=1540878216">退出</a> </div> </div>';
            }else{//未登录
                headhtml+='<div class="pubt" onmouseover="javascript:$(\'.pubt-box\').show();" onmouseout="javascript:$(\'.pubt-box\').hide();"> <a class="btn-pubt" href="javascript:void(0);">发布</a> <div class="pubt-box br8"> <span class="arwwj"> </span> <a href="/upfood.html">发布菜谱</a> <a href="/caidan/create">创建菜单</a> </div> </div> <div class="perinfo"> <a class="login" href="/login"> 登录 </a> | <a class="register" href="/signup.html" target="_blank"> 注册 </a></div>';
            }
            $("#header .header").append(headhtml);
        }
    });
</script>
	<div class="wrap">
		<div id="content">
			<div class="type-tab">
				<div class="type-head clearfix">
					<!-- <a href="https://www.douguo.com/jingxuan" one-link-mark="yes">精选</a>
					<a href="https://www.douguo.com/zuixin" one-link-mark="yes">最新</a> -->
					
		<a href="<%=path %>/HotCookbookShowListServlet?action=getOnePageCookbook"
			one-link-mark="yes">精选食谱</a> 
		<a href="<%=path %>/indexServlet?action=getAllRecipeType"
			one-link-mark="yes"  class="active">食谱分类</a> 
		<a href="<%=path %>/indexServlet?action=getAllIngredientType"
			one-link-mark="yes" >食材分类</a>
		<a href="<%=path%>/HotWorksServlet?action=allOnePagerWorksInc"
			one-link-mark="yes">精选作品</a>
				</div>
			</div>
			
			<div id="sort" class="clearfix">

				<%
				List<RecipeType> recipeTypes=(List<RecipeType>)request.getAttribute("recipeTypes");
				
				for(RecipeType recipeType:recipeTypes){
					
				%>
				<div class="sort-item">
					<h2><%=recipeType.getTitle() %></h2>
					<ul class="sortlist clearfix">
						<%
					List<RecipeTypeSecond> recipeTypeSeconds = (List<RecipeTypeSecond>) request.getAttribute("recipeTypeSeconds");
					for(RecipeTypeSecond recipeTypeSecond:recipeTypeSeconds){
						
						if(recipeType.getId()==recipeTypeSecond.getRecipeType().getId()){
					 %>
						<li><a
							href="<%=path %>/indexServlet?action=recipetypeSecond&name=<%=recipeTypeSecond.getTitle()  %>"
							title="<%=recipeTypeSecond.getTitle() %>" target="_blank"
							one-link-mark="yes"><%=recipeTypeSecond.getTitle() %></a></li>
						
							<%
						}
						}
				
						 %> 
					</ul>
				</div>
				
				<% }

				%>





				






			
				
			</div>
			<h2 class="title sorttit">蔬菜</h2>
			<div id="sort" class="clearfix">
				

				<p class="fcc">
					你当前的位置：<a href="<%=path %>" title="豆果美食"
						one-link-mark="yes">豆果美食</a> &gt; <a
						href="<%=path %>/indexServlet?action=getAllRecipeType" title="食谱" one-link-mark="yes">食谱</a>
					&gt; 分类
				</p>
			</div>
		</div>
		<style>
.ellipsis {
	cursor: pointer;
	display: block;
	text-align: left;
	margin-left: 48%;
	color: #ffb31a;
	font-size: 24px;
	margin-top: 15px;
}

.shou {
	display: none;
}

.jiantou {
	width: 9%;
	display: inline-block;
}

.jiantou img {
	width: 100%;
}

.jiantou2 {
	line-height: 10px;
}
</style>
		<jsp:include page="/inc/foot.jsp"></jsp:include>
		<script src="<%=path%>/static/RecipeTypeShowList_files/tip.js.下载"></script>
		<script src="<%=path%>/static/RecipeTypeShowList_files/search.js.下载"></script>
		<script src="<%=path%>/static/RecipeTypeShowList_files/main.js.下载"></script>
		<!-- <script src='https://s13.cnzz.com/c.php?id=30029854' language='JavaScript' charset='gb2312'></script> -->
</body>
</html>